﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HtmlAgilityPack;
namespace HtmlMultiFileEditor.Model
{
    public class HtmlPage
    {
        #region "Private"
        private HtmlDocument document = new HtmlDocument();

        #endregion

        #region "Public"

        public HtmlPage(string filePath)
        {

            string localFilePath = filePath;
            Document.Load(localFilePath);

        }

        public HtmlDocument Document
        {
            get { return document; }

        }

        public HtmlNode GetElementById(string id)
        {
            return Document.GetElementbyId(id);
        }

        public HtmlNodeCollection GetElementByXPath(string xPath)
        {
            return Document.DocumentNode.SelectNodes(xPath);

        }

        #endregion
    }
}

